package com.example.lotterysystem.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 功能描述:
 *
 * @author Lenovo
 * @date 2025/1/31
 */
@Getter
@AllArgsConstructor
public enum ActivityUserStatusEnum {
    INIT(1, "初始化"),
    COMPLETED(2, "已抽取");
    private final Integer code;
    private final String message;

    public static ActivityUserStatusEnum forName(String name) {
        for (ActivityUserStatusEnum userStatusEnum : ActivityUserStatusEnum.values()) {
            if (userStatusEnum.name().equalsIgnoreCase(name)) {
                return userStatusEnum;
            }
        }
        return null;
    }
}
